Skip to content

Recycle terminated Worker execution capacity - #622

Merged
wieslawsoltes merged 1 commit into
mainfrom
fix/worker-terminated-capacity-81
Sep 19, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
fix/worker-terminated-capacity-81

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Advances #81 and #288.

Separates the 64 live dedicated-Worker execution slots from bounded stopped-wrapper retention, so terminated or terminal-startup-failed workers no longer permanently exhaust capacity. Workers are joined and queues cleared before wrapper weakening; instance methods resolve through branded receiver-private state so detached calls reject without dangling callback pointers; stopped wrapper records remain bounded at 256 and reclaim only after weak collection.

Adds native lifecycle regressions plus a browser-shaped contract/profile for 80 terminated workers, 80 terminal startup failures, replacement capacity, stopped-method safety and detached receiver rejection. Validation: git diff HEAD^ --check passed. Builds, runtime/WPT, throughput/memory and packaged Code OSS Worker gates remain unexecuted under the current throughput directive.

@wieslawsoltes
wieslawsoltes merged commit f71d6c6 into main Sep 19, 2026
0 of 7 checks passed
@wieslawsoltes
wieslawsoltes deleted the fix/worker-terminated-capacity-81 branch September 19, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant